﻿using Microsoft.Data.SqlClient;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bsznq.Repositories.SqlConnections
{
    public class BsznqSqlConnection : SqlConnectionBase
    {
        public override string ConnectionString { get; set; }
        public override IDbConnection DBConnection { get { return new SqlConnection(_configuration["ConnectionStrings:Bsznq"]); } }

        private readonly IConfiguration _configuration;

        public BsznqSqlConnection(IConfiguration configuration)
        {
            _configuration = configuration;
            ConnectionString = _configuration["ConnectionStrings:Bsznq"];
        }

    }
}
